﻿using System;
using System.ComponentModel;

using SBPweb.Modules.Modularity;

namespace SBPweb.MediaCenter.Modules.Messenger.MSN.WF
{

    public class Module : MSN.Module
    {

        private MessengerControl pWFMessengerControl;

        public Module(IModuleHost parent)
            : base(parent)
        {
            Name = "Msn messenger";
        }

        public override void Initialize()
        {
            base.Initialize();

            if (HostType != ModuleHostType.WindowsForms)
            {
                //TODO: log something
                return;
            }
        }

        public override void InitializeMenus()
        {
            //throw new NotImplementedException();
        }

        public override void InitializeSmartparts()
        {
            pWFMessengerControl = new MessengerControl(this);
            pHost.Smartparts.Add(pWFMessengerControl);
        }

        public override void LoadPersistency()
        {
            throw new NotImplementedException();
        }

        public override void SavePersistency()
        {
            throw new NotImplementedException();
        }

        public override void Terminate()
        {
            throw new NotImplementedException();
        }
    }
}
